package com.ktjy.test;

import com.ktjy.entity.Auction;
import com.ktjy.mapper.AuctionMapper;
import com.ktjy.service.AuctionService;
import com.ktjy.service.Impl.AuctionServiceImpl;
import com.ktjy.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class apps {
    @Test
    public void test() {
        try (SqlSession sqlSession = MyBatisUtil.createSqlSession()) {
            AuctionMapper mapper = sqlSession.getMapper(AuctionMapper.class);
            List<Auction> auctionList = mapper.getAuctionList();
            System.out.println(auctionList);
        }
    }
}
